package zimoch.mordheim;

import zimoch.utils.Util;

public class Mordheim {

	/**
	 * @param args
	
	 *
	 */
	
	static Board boardgame = new Board();
	public static void main(String[] args) {
	final BandDocument banda = Engine.loadBandFromXML(".\\xml\\Jednostki.xml");
	
	//Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
        public void run() {
         boardgame.setHeroPanel(banda.getBand().getHeroes().getUnitArray(1));
         
        // boardgame.addBoard();
         boardgame.setVisible(true);
        }
    });



	Util.print(banda.getBand().getHeroes().getUnitArray()[0].getType());
	}

}
